package org.example.content.api;

import io.swagger.annotations.Api;
import org.example.content.mapper.CourseCategoryMapper;
import org.example.content.model.dto.CourseCategoryTreeDto;
import org.example.content.service.CourseCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
@Api(tags = "根据分类查询")
@RestController
public class CourseCategoryInfoController {
    @Autowired
    private CourseCategoryService courseCategoryService;
    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> selectTreeNodes() {
        return courseCategoryService.selectTreeNodes("1");
    }
}